package com.zmj.sy.mom.srv.aps.bean.vo.apsorder;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
public class ApsOrderGanttChartArrayResVo {

    private Integer id;

    @ApiModelProperty("总订单ID")
    private Integer orderId;

    @Comment("工单Id")
    private Integer apsWorkOrderId;

    @Comment("工单Pid")
    private Integer apsWorkOrderPid;

    private Integer apsOrderId;


    @ApiModelProperty("订单编号")
    private String orderCode;

    @ApiModelProperty("施工号")
    private String constructNo;

    @ApiModelProperty("分包号")
    private String seq;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime start;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime end;

    @ApiModelProperty("零件编号")
    private String plmId;

    @ApiModelProperty("零件名称")
    private String bomName;

    @ApiModelProperty("零件名称")
    private String bomCode;

    @ApiModelProperty("工序名称")
    private String phaseName;

    @ApiModelProperty("工序名称")
    private String phaseCode;

    @ApiModelProperty("此包要做的数量")
    private BigDecimal count;

    @ApiModelProperty("完工数量")
    private BigDecimal finishCount;

    @ApiModelProperty("单件工时(分钟)")
    private BigDecimal workTimeMinutes;

    @ApiModelProperty("计划时长(分钟)")
    private BigDecimal planTimeMinutes;

    @ApiModelProperty("颜色")
    private String color;

    @ApiModelProperty("工作组编号")
    private String groupCode;

    @ApiModelProperty("物料编码")
    private String erpCode;

    @ApiModelProperty("工序链")
    private String workChain;
}
